<?php
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Schools Management System</title>
<meta http-equiv="Content-Language" content="English" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="../style.css" media="screen" />

</head>
<body>
<?php
require_once '../Login/databaseconnection.php';
if(!loggedin())
{
require_once '../index.php';
}
else
{
	if(isset($_POST['Register']))
{
$Lab_Id=$_POST['Lab_Id'];
   $School_Id=$_POST['School_Id'];
     $Tp_Number=$_POST['Tp_Number'];
   $Account_Number=$_POST['Account_Number'];
    $Date_of_commencement=$_POST['Date_of_commencement'];
	$Availability_Of_LAN=$_POST['Availability_Of_LAN'];
   $LAN_Supplier=$_POST['LAN_Supplier'];
 $Source_Of_Power=$_POST['Source_Of_Power'];
    $Supplied_Date=$_POST['Supplied_Date'];
    $Speed_Of_WAN=$_POST['Speed_Of_WAN'];
   $WAN_Connection_Type=$_POST['WAN_Connection_Type'];
	$Internet_Facilities=$_POST['Internet_Facilities'];
   require_once 'REG.php';
}
	
?>
	
<div id="wrap">

<div id="header"><table width="1239" border="0">
  <tr>
    <td width="866" height="119" rowspan="2"><h1 class="heaaderte"><font color="#996699" style="text-shadow:#969" size="+6">Schools Management System</font></h1></td>
    <td width="110" height="88">&nbsp;</td>
    <td width="161">&nbsp;</td>
    <td width="84">&nbsp;</td>
  </tr>
  <tr>
    <td height="21">&nbsp;</td>
    <td>
	<?Php
	//$First_Name=$_SESSION['First_Name'];
    //$_SESSION['Last_Name']=$Last_Name;
	  if(isset($_SESSION['First_Name']))
	  
{
      echo "Hi,". $_SESSION['First_Name']." ".$_SESSION['Last_Name'];
}
?></td>
    <td><a href="../Logout.php" class="logout">Logout</a></td>
  </tr>
  </table>
</div>

<div id="menu1_bg">
		<div id="menu1">
			
	
			<ul>
				<li><a href="../index.php"><font color="#CCCC66" style="text-shadow:#969" size="+1">Home</font></a></li>
				<li><a href="../Schools/Schools.php"><font color="#CCCC66" style="text-shadow:#969" size="+1">Schools</font></a></li>
				<li><a href="../Teachers/teachers.php"><font color="#CCCC66" style="text-shadow:#969" size="+1">Teachers</font></a></li>
				<li><a href="Labs.php" class="active"><font color="#CCCC66" style="text-shadow:#969" size="+1">Labs</font></a></li>
				<li><a href="../Resources/Resources.php"><font color="#CCCC66" style="text-shadow:#969" size="+1">Resources</font></a></li>
                <li><a href="#"><font color="#CCCC66" style="text-shadow:#969" size="+1">Resource Team</font></a></li>
                         <li><a href="../Programmes/Programmes.php"><font color="#CCCC66" style="text-shadow:#969" size="+1">Programmes</font></a></li>
                                  <li><a href="../Competition/Competition.php""><font color="#CCCC66" style="text-shadow:#969" size="+1">Competitions</font></a></li>
                 <li></li>
			</ul>
	</div>
  </div>
<div class="left">
  
<div class="articles">
  
  <form action="#" method="POST">
  <table width="614" height="425" border="0">
    <tr>
      <th height="18" colspan="7"  scope="row"><?php
		if(isset($_POST['Register']))
{
	if(isset($_SESSION['errorin']))
	{
		echo $_SESSION['errorin'];
		unset($_SESSION['errorin']);
	}
	if(isset($_SESSION['error']))
	{
		echo $_SESSION['error'];
		unset($_SESSION['error']);
		
	}
}
		?></th>

    </tr>
    <tr>
      <th  scope="row">&nbsp;</th>
      <th height="18" colspan="5" bgcolor="#936"  scope="row">&nbsp;</th>
      <td width="126" rowspan="13">&nbsp;</td>
    </tr>
    <tr>
      <th width="65"  scope="row">&nbsp;</th>
      <th width="26" rowspan="13" bgcolor="#936"  scope="row">&nbsp;</th>
      <th width="167" height="22" scope="row" bgcolor="#936"><p>&nbsp;</p>
        
        
        Lab Id:</th>
      <td width="27" rowspan="13" bgcolor="#CB5F8F">&nbsp;</td>
      <td width="145" bgcolor="#CB5F8F" height="22"><input type="text" name="Lab_Id" /></td>
      <td width="28" rowspan="13" bgcolor="#936">&nbsp;</td>
      </tr>
    
    <tr>
      <th scope="row">&nbsp;</th>
      <th height="22" scope="row" bgcolor="#936">School Id:</th>
      <td bgcolor="#CB5F8F"><input type="text" name="School_Id" /></td>
      </tr>
    <tr>
      <th scope="row">&nbsp;</th>
      <th height="22" scope="row" bgcolor="#936">Source Of Power: </th>
      <td bgcolor="#CB5F8F"><input type="text" name="Source_Of_Power"/></td>
      </tr>
    <tr>
      <th scope="row">&nbsp;</th>
      <th height="22" scope="row" bgcolor="#936">Telephone Number:</th>
      <td bgcolor="#CB5F8F"><input type="text" name="Tp_Number"/></td>
      </tr>
    <tr>
      <th scope="row">&nbsp;</th>
      <th height="22" scope="row" bgcolor="#936">Account Number: </th>
      <td bgcolor="#CB5F8F"><input type="text" name="Account_Number"/></td>
      </tr>
    <tr>
      <th scope="row">&nbsp;</th>
      <th height="22" scope="row" bgcolor="#936">Date of commencement: </th>
      <td bgcolor="#CB5F8F"><input type="text" name="Date_of_commencement"/></td>
      </tr>
    <tr>
      <th scope="row">&nbsp;</th>
      <th height="44" scope="row" bgcolor="#936">Availability of Lan: </th>
      <td bgcolor="#CB5F8F"><p>
        <label>
          <input type="radio" name="Availability_Of_LAN" value="Yes" />
          Yes</label>
        <br />
        <label>
          <input type="radio" name="Availability_Of_LAN" value="No" />
          No</label>
        <br />
      </p></td>
      </tr>
	  <tr>
	    <th scope="row">&nbsp;</th>
	    <th height="27" scope="row" bgcolor="#936">LAN Supplier: </th>
      <td bgcolor="#CB5F8F"><input type="text" name="LAN_Supplier"/></td>
      </tr>
 
	 <tr>
	   <th scope="row">&nbsp;</th>
	   <th height="22" scope="row" bgcolor="#936">Supplied_Date: </th>
      <td bgcolor="#CB5F8F"><input type="text" name="Supplied_Date"/></td>
      </tr>
    <tr>
      <th scope="row">&nbsp;</th>
      <th height="22" scope="row" bgcolor="#936">Speed Of WAN: </th>
      <td bgcolor="#CB5F8F"><input type="text" name="Speed_Of_WAN"/></td>
      </tr>
    
	 <tr>
	   <th scope="row">&nbsp;</th>
	   <th height="29" scope="row" bgcolor="#936">WAN Connection Type: </th>
      <td bgcolor="#CB5F8F"><input type="text" name="WAN_Connection_Type"/></td>
      </tr>
 
	 <tr>
	   <th scope="row">&nbsp;</th>
	   <th height="22" scope="row" bgcolor="#936">Wired Date: </th>
      <td bgcolor="#CB5F8F"><input type="text" name="Wired_Date"/></td>
      </tr>
   
	 <tr>
	   <th scope="row">&nbsp;</th>
	   <th height="44" scope="row" bgcolor="#936">Internet Facilities: </th>
	   <td  bgcolor="#CB5F8F"><input type="radio" name="Internet_Facilities" value="Yes" />
	     Yes</label>
	     <br />
	     <label>
	       <input type="radio" name="Internet_Facilities" value="No" />
	       No</label>
	     </td>
	   <td><a href="RegLab.php">Reset</a>|
	     <input name="Register" align="middle" type="submit" value="Register" /></td>
	   </tr>
	 
  </table>
  <br/>
  
 </form>
</div>
</div>

<div class="rightmenu"> 
<h1>LABS</h1><br />
<table width="220" border="0">
  <tr>
    <td width="210" height="41"><a href="RegLab.php">Add New Lab</a></td>
   

  </tr>
  <tr>
    <td height="41"><a href="SearchLab.php">Search a Lab</a></td>
    
    
  </tr>
  <tr>
    <td height="41"><a href="SearchLabSch.php">Search Labs for a school</a></td>

    
  </tr>
  <tr>
    <td height="41"><a href="UpdateLab.php">Update a  Lab of a School</a></td>
 
    
  </tr>
  <tr>
    <td height="41"><a href="DelLab.php">Delete a  Lab of a School</a></td>
    
    
  </tr>
  <tr>
    <td height="41"><a href="viewall.php">View All</a></td>
   

  </tr>
</table></div>
 
 <div style="clear: both;"> </div>


<div id="footer"><table width="1236" height="38" border="0">
    <tr>
      <td width="904" height="34">Schools Managemrnt System &copy; 2012 </td>
      <td width="50"><strong><a href="#" class="active">Home</a><a href="#"></a></strong>|</td>
      <td width="80"><strong><a href="#" class="active">Contact Us</a></strong>|</td>
      <td width="40"><a href="http//www.facebook.com"><img src="../images/facebook1.png" width="38" height="38"/></a></td>
      <td width="38"><a href="http//twitter.com"><img src="../Images/twitter.png" width="38" height="38"/></a></td>
      <td width="36"><a href="http//www.google.lk"><img src="../Images/google.png" width="38" height="38"/></a><a href=""http="http"//www.yahoo.com""></a></td>
      <td width="58"><a href=""http="http"//www.yahoo.com""><img src="../Images/yahoo.png" alt="" width="38" height="38"/></a></td>
    </tr>
  </table>
</div>
</div>

<?php

	}
?>
</body>
</html>